package com.ruoyi.ly.mapper;

import java.util.List;
import com.ruoyi.ly.domain.LyMerchantActivities;
import org.springframework.data.repository.query.Param;

/**
 * 商家活动Mapper接口
 * 
 * @author liuyan
 * @date 2025-05-13
 */
public interface LyMerchantActivitiesMapper 
{
    /**
     * 查询商家活动
     * 
     * @param id 商家活动主键
     * @return 商家活动
     */
    public LyMerchantActivities selectLyMerchantActivitiesById(Long id);
//    多表查询
    public LyMerchantActivities selectLyMerchantActivitiesByIds(Long id);

    //    test
//    public LyMerchantActivities selectLyMerchantActivitiesByIdss(Long mid);
    /**
     * 查询商家活动列表
     * 
     * @param lyMerchantActivities 商家活动
     * @return 商家活动集合 //    查询所有活动,web端后台
     */
    public List<LyMerchantActivities> selectLyMerchantActivitiesList(LyMerchantActivities lyMerchantActivities);

//    未上架
    public List<LyMerchantActivities> selectLyMerchantActivitiesList2(LyMerchantActivities lyMerchantActivities);

// <!--商家查询自己已上架的活动-->
public List<LyMerchantActivities> selectLyMerchantActivitiesList1(LyMerchantActivities lyMerchantActivities);
    /**
     * 新增商家活动
     * 
     * @param lyMerchantActivities 商家活动
     * @return 结果
     */
    public int insertLyMerchantActivities(LyMerchantActivities lyMerchantActivities);

    /**
     * 修改商家活动
     * 
     * @param lyMerchantActivities 商家活动
     * @return 结果
     */
    public int updateLyMerchantActivities(LyMerchantActivities lyMerchantActivities);

    //下架单个活动
    public int xiugaisendStatus(LyMerchantActivities lyMerchantActivities);
    /**
     * 删除商家活动
     * 
     * @param id 商家活动主键
     * @return 结果
     */
    public int deleteLyMerchantActivitiesById(Long id);

    /**
     * 批量删除商家活动
     * 
     * @param ids 需要删除的数据主键集合
     * @return 结果
     */
    public int deleteLyMerchantActivitiesByIds(Long[] ids);
}
